#!/usr/bin/env python3
# -*- coding: utf-8 -*-

b = bytes.fromhex

# Picks up at 6F94H to avoid collisions with various patches.
s_name =  "NGEE 6C60H~7530H	007 Goldeneye (USA)"
sample = b("""00408825 0FC268E3 02202025 0FC2F523 00000000 0C002DAB 00000000 3C048002
              0FC2F6AC 8C8441A8 0C000C49 00000000""")

s_mask = b("""FFFFFFFF FC000000 FFFFFFFF FC000000 FFFFFFFF FC000000 FFFFFFFF FFE00000
              FC000000 FC1F0000 FC000000 FFFFFFFF""")

symbol = (('+', 'game loop', 0x6FFFF400 - 0x334),
          ('l', 'initialize video buffers', 0x28, 0x70000000),
          )

ex_sym = (('initialize video buffers', -0x6FFFF400, (
            ('f', 1, '8004EB00+0 = 0', 0x70000000),),
          ),)

# This eliminates explicit slow initialization of framebuffers.
p_cmds = (('l', 0x28, '8004EB00+0 = 0', 4),
          )
